package com.endurance.config;

import org.springframework.context.annotation.*;

import java.sql.Connection;


@Configuration
@EnableAspectJAutoProxy
@ComponentScan("com.endurance")
@PropertySource("classpath:db.properties")
// 导入一个或者多个组件类
@Import(DBConfig.class)

 public class SpringConfig {

    @Bean("threadLocal")
    public ThreadLocal<Connection> createThreadLocal() {
        return new ThreadLocal<Connection>();
    }


}
